using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings[1].ConnectionString);
        SqlCommand cmd = new SqlCommand("SELECT TOP 100 * FROM TB_MOVIE", con);
        SqlDataAdapter adapter = new SqlDataAdapter(cmd);
        DataSet ds = new DataSet();
        adapter.Fill(ds);

        con.Close();
        adapter.Dispose();
        cmd.Dispose();
        con.Dispose();

        this.YuiGrid1.DataSource = ds;
        //this.YuiGrid1.DataSource = new DataRecord().recs;
    }
}
